import axios from 'axios';
const server = "/v1/user";
import request from "@/apps/client/utils/request.ts";
export function getUserInfo() {
    return request.get(server + `/getUserInfo`);
}

export function auth() {
    return request.get(server + `/auth`);
}

export function register(data) {
    return request.post(server + `/register`, data, {
        headers: {
            'Content-Type': 'application/json'
        }
    });
}